package com.blog.service;

import com.blog.pojo.Admin;
import com.blog.pojo.Blogusers;

/**
 * @author: VE
 * @DATE: 2022/10/11 10:45
 * 描述:
 */
public interface AdminService {

    /**
     * 新增
     */
    public Object insert(Admin admin);

    /**
     * 删除
     */
    public Object delete(int id);

    /**
     * 更新
     */
    public Object update(Admin admin);

    /**
     * 根据主键 id 查询
     */
    public Admin load(int id);

    /**
     * 根据用户名查询
     * @param adminName
     * @return
     */
    Admin login(String adminName);
}
